package opensocial.apps.treat.model
{
  public class Level
  {
    public function Level(id:Number, name:String, seat:Number, emptySeat:Number, limit:Number, money:Number)
    {
      _name = name;
      _id = id;
      _seat = seat;
      _emptySeat = emptySeat;      
      _limit = limit;
    }
    
    private var _name:String;
    
    public function set name(value:String):void {
      _name = value;
    }
    
    public function get name():String {
      return _name;
    }
    
    private var _id:Number;
    
    public function set id(value:Number):void {
      _id = value;
    }
    
    public function get id():Number {
      return _id;
    }
    

    private var _seat:Number;
    
    public function set seat(value:Number):void {
      _seat = value;
    }
    
    public function get seat():Number {
      return _seat;
    }
    
    private var _emptySeat:Number;
    
    public function set emptySeat(value:Number):void {
      _emptySeat = value;
    }
    
    public function get emptySeat():Number {
      return _emptySeat;
    }
    
    private var _limit:Number;    
    
    public function set limit(value:Number):void {
      _limit = value;
    }
    
    public function get limit():Number {
      return _limit;
    }
    
    private var _money:Number;
    
    public function set money(value:Number):void {
      _money = value;
    }
    
    public function get money():Number {
      return _money;
    }

		public static function newInstance(o: Object): Level {
    	return new Level(o.id, o.name, o.seat, o.emptySeat, o.limit, o.money);
    }
  }
}